[Notes] Git notes

Create a remote repository and push

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
git init
git add .
git commit -am 'init'

git config --local user.name username
git config --local user.email email

git config --list //check config

git config --local core.ignorecase false // turn case sensitivity off

// use http to connect
curl -u username https://api.github.com/user/repos -d '{"name":"RepoName"}'

// update
git remote add origin git@github.com:username/RepoName.git

git push origin master